//
//  ShopTTableViewCell.m
//  HandWork
//
//  Created by 王阳阳 on 16/1/20.
//  Copyright © 2016年 www.lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "ShopTTableViewCell.h"

@implementation ShopTTableViewCell
-(void)dealloc
{
    [_bgimg release];
    [_titlelabel release];
    [super dealloc];
}
#pragma mark - 初始化
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createcell];
    }
    return self;
}

- (void)createcell
{//图片
    self.bgimg = [[UIImageView alloc]init];
    [self.contentView addSubview:self.bgimg];
    [_bgimg release];
//标题
    self.titlelabel = [[UILabel alloc]init];
    [self.contentView addSubview:self.titlelabel];
    [_titlelabel release];
}
#pragma mark - 布局
- (void)layoutSubviews
{
    [super layoutSubviews];
    self.bgimg.frame = CGRectMake(5, 0, self.contentView.frame.size.width-10, 200);
    self.bgimg.layer.cornerRadius = 5;//圆角
    self.bgimg.clipsToBounds = YES;
    self.titlelabel.frame = CGRectMake(0, 160, self.contentView.frame.size.width, 30);
    self.titlelabel.textColor = [UIColor whiteColor];
    
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
